# apps/users/urls.py
from django.urls import path
from .views import (
    UserLoginView,
    UserInfoView,
    UserCreateView,
    UserUpdateView,
    UserDeleteView,
    UserPermissionAssignView,
    UserListView
)

urlpatterns = [
    path('login/',                UserLoginView.as_view(),            name='user-login'),
    path('info/',                 UserInfoView.as_view(),             name='user-info'),
    path('all/',                  UserListView.as_view(),             name='user-list'),  # GET 列表
    path('',                      UserCreateView.as_view(),           name='user-create'),
    path('<str:user_id>/update/', UserUpdateView.as_view(),           name='user-update'),
    path('<str:user_id>/delete/', UserDeleteView.as_view(),           name='user-delete'),
    path('permissions/',          UserPermissionAssignView.as_view(),  name='user-permission-assign'),
]